package top.lyjwn.todo.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import top.lyjwn.todo.common.properties.RedisProperties;
import top.lyjwn.todo.common.properties.TokenProperties;
import top.lyjwn.todo.common.properties.WeixinProperties;

@ConfigurationProperties(
        prefix = "lyjwn"
)
public class LyjwnProperties {

    @NestedConfigurationProperty
    private RedisProperties redis;

    @NestedConfigurationProperty
    private TokenProperties token;

    @NestedConfigurationProperty
    private WeixinProperties weixin;

    public RedisProperties getRedis() {
        return redis;
    }

    public void setRedis(RedisProperties redis) {
        this.redis = redis;
    }

    public TokenProperties getToken() {
        return token;
    }

    public void setToken(TokenProperties token) {
        this.token = token;
    }

    public WeixinProperties getWeixin() {
        return weixin;
    }

    public void setWeixin(WeixinProperties weixin) {
        this.weixin = weixin;
    }
}
